package cn.dengta.webapp.user.entity;

import java.util.Date;

import cn.dengta.webapp.base.entity.BizEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 投放合同表
 *
 * @author lgy
 * @since 2023-03-28
 */
@Setter
@Getter
@Accessors(chain = true)
public class ChannelPact extends BizEntity {

	/** 名称 */
	String name;
	/** 返点比例% */
	Integer pactRate;
	/** 负责人 */
	String realName;
	/** 代理商联系方式 */
	String contactWay;
	/** 代理商联系人 */
	String contactName;

	public ChannelPact init(ChannelPact input, Date now) {
		this.name = input.name;
		this.pactRate = input.pactRate;
		this.realName = input.realName;
		this.contactWay = input.contactWay;
		this.contactName = input.contactName;
		super.init(null, null);
		super.initTime(now);
		return this;
	}

	public static final String NAME = "name";
	public static final String PACT_RATE = "pact_rate";
	public static final String REAL_NAME = "real_name";
	public static final String CONTACT_WAY = "contact_way";
	public static final String CONTACT_NAME = "contact_name";

}
